//
//  Model.swift
//  CollapsibleTtableSection
//
//  Created by apple on 16/12/26.
//  Copyright © 2016年 com.zaoguankeji.www. All rights reserved.
//

import UIKit

struct Section {
    
    var name: String!
    
    var items: [String]!
    
    var collapsed: Bool!
    /// init
    init(name: String, items: [String], collapsed: Bool = true) {
    
    self.name = name
    self.items = items
    self.collapsed = collapsed
    }
}

var sections :[Section] = {
var sec = [Section]()
    sec = [
        Section(name: "Mac", items: ["MacBook", "MacBook Air", "MacBook Pro", "iMac", "Mac Pro", "Mac mini", "Accessories", "OS X El Capitan"]),
        Section(name: "iPad", items: ["iPad Pro", "iPad Air 2", "iPad mini 4", "Accessories"]),
        Section(name: "iPhone", items: ["iPhone 4s", "iPhone 4","iPhone 5s", "iPhone 5","iPhone 6s", "iPhone 6","iPhone 7s", "iPhone 7", "iPhone SE", "Accessories"])
    ]
return sec
}()
		
